package com.ozo.easy.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 修改密码对象
 *
 * @author ozo
 * @since 2024-12-31
 */
@Data
@Schema(description = "修改密码对象")
public class UpdatePwdDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "旧密码不能为空")
    @Schema(description = "旧密码")
    private String oldPassword;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;

    @NotBlank(message = "密码确认不能为空")
    @Schema(description = "密码确认")
    private String passwordConfirm;

}
